﻿using System;
using System.Collections.Generic;
using Ks.Fs.Core.Data.Provider;
using Ks.Fs.Core.Data.SqlDataProvider;

namespace Ks.Fs.Core.Services
{
    public class BaseService
    {
        static IDataProvider dataProvider;
        public static IDataProvider DataProvider
        {
            get
            {
                if (dataProvider == null)
                {
                    //reading provider from config section 
                    //instance a dataprovider
                    dataProvider = new SqlDataProvider();                    
                }
                return dataProvider;
            }
        }
    }
}
